package edu.zli.lazy;

/**
 * @author ZerlindaLi create at 2021/3/18 10:39
 * @version 1.0.0
 * @description HungryDriver
 */
public class LazySyncDriver {
    public static void main(String[] args) {
        LazySyncThread thread1 = new LazySyncThread();
        LazySyncThread thread2 = new LazySyncThread();
        thread1.start();
        thread2.start();

        LazySyncSingle single = LazySyncSingle.getInstance();
        System.out.println(single);
        LazySyncSingle single2 = LazySyncSingle.getInstance();
        System.out.println(single2);
    }
}
